﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data.SqlClient;

namespace BLL
{
    public  class FloorsBLL
    {
       
        public List<Floors> GetFloorsList(params SqlParameter[] param)
        {
            return new FloorsDAL().GetList<Floors>(param);
        }
        public bool AddFloors(params SqlParameter[] param)
        {
            Floors floor = new Floors();
            return new FloorsDAL().Add(floor,param); 
        }
        public Floors GetFloorsById(SqlParameter[] param)
        {
            return new FloorsDAL().GetList<Floors>(param).FirstOrDefault();
        }
    }
}
